package com.ylfstu.final_;

public class FinalExercise01 {
    public static void main(String[] args) {
        new Circle(10).getArea();

    }
}


class Circle {
    private double radius;
    private final double PI;


    public Circle(double radius) {
        PI = 3.14;
        this.radius = radius;
    }

    public void getArea() {
        System.out.println("面积=" + radius * radius * PI);
    }

}